<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>员工表</title>
#parse("sys/header.html")
</head>
<body>
<div id="rrapp" v-cloak>
	<div v-show="showList">
		<div class="grid-btn">
		<div class="grid-btn" style="display:inline">
			<div class="form-group col-sm-2">
				<input type="text" class="form-control" v-model="value" @keyup.enter="query" placeholder="工号/姓名/职位编号">
			</div>
			<a class="btn btn-default" @click="query">查询</a>
		</div>
		<!-- 	#if($shiro.hasPermission("dictemployee:save"))
			<a class="btn btn-primary" @click="add"><i class="fa fa-plus"></i>&nbsp;新增</a>
			#end
			#if($shiro.hasPermission("dictemployee:update"))
			<a class="btn btn-primary" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;修改</a>
			#end
			#if($shiro.hasPermission("dictemployee:delete"))
			<a class="btn btn-primary" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</a>
			#end
            <a class="btn btn-primary" id="his"  @click="his"><i class="fa fa-plus"></i>&nbsp;存入历史</a>  
		     <input id="inorgtime"  class="form-control" type="text" placeholder="时间" style="width:275px;display:none"/>
            <a class="btn btn-primary" id="surehis" @click="surehis" style="background:red;display:none"><i class="fa fa-plus"></i>&nbsp;确定</a> --> 
			<!-- <a class="btn btn-primary" id="imp" @click="imp" style="float:right"><i class="fa fa-plus"></i>&nbsp;导入excel</a> 
			<a class="btn btn-primary" id="sure" @click="up" style="display:none;float:right" ><i class="fa fa-plus"></i>&nbsp;确定</a>  -->
            <input type="file" id="uploadFile" style="display:none" name="uploadFile"/>   
		</div>
	    <table id="jqGrid"></table>
	    <div id="jqGridPager"></div>
    </div>
    <div v-show="!showList" class="panel panel-default">
		<div class="panel-heading">{{title}}</div>
		<form class="form-horizontal">
											<div class="form-group">
			   	<div class="col-sm-2 control-label">姓名</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="dictEmployee.name" placeholder="姓名"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">出生日期</div>
			   	<div class="col-sm-10">
			      <input id="birthday" type="text" class="form-control" v-model="dictEmployee.birthday" placeholder="出生日期"/>
			    </div>
			</div>
								<!-- 	<div class="form-group">
			   	<div class="col-sm-2 control-label">性别（0;女，1：男）</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="dictEmployee.gender" placeholder="性别（0;女，1：男）"/>
			    </div>
			</div> -->
			
			<div class="form-group">
				<div class="col-sm-2 control-label">性别</div> 
				<label class="radio-inline">
				  <input type="radio" name="gender" value="true" v-model="dictEmployee.gender"/> 男
				</label>
				<label class="radio-inline">
				  <input type="radio" name="gender" value="false" v-model="dictEmployee.gender"/> 女
				</label>
			</div>
			
			
									<div class="form-group">
			   	<div class="col-sm-2 control-label">身份证号</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="dictEmployee.cardno" placeholder="身份证号"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">员工编号</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="dictEmployee.workno" placeholder="员工编号"/>
			    </div>
			</div>
			<div class="form-group">
			   	<div class="col-sm-2 control-label">上级工号</div>
			   	<div class="col-sm-10">
			       <input type="text" class="form-control" v-model="dictEmployee.upWorkNo" placeholder="上级工号" />
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">职位编号</div>
			   	<div class="col-sm-10">
			      <input type="hidden" class="form-control" v-model="dictEmployee.jobno" placeholder="职位编号"/>
			       <input id="jobName" type="text" class="form-control" v-model="dictEmployee.jobName" placeholder="职位名称" style="cursor:pointer;" @click="getDutyList" readonly="readonly"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">部门编号</div>
			   	<div class="col-sm-10">
			      <input type="hidden" style="display:none" class="form-control" v-model="dictEmployee.deptno" placeholder="部门编号" readonly="readonly"/>
			      <input id="deptname" type="text" class="form-control" v-model="dictEmployee.deptName" style="cursor:pointer;" placeholder="部门名称" @click="deptTree" readonly="readonly"/>			    
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">关联账号</div>
			   	<div class="col-sm-10">
			      <input type="hidden" class="form-control" v-model="dictEmployee.userid" placeholder="sys_user的id字段" />
			       <input id="userName" type="text" class="form-control" v-model="dictEmployee.userName" style="cursor:pointer;" placeholder="用户名" readonly="readonly" @click="getUserList"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">入职时间</div>
			   	<div class="col-sm-10">
			      <input id="inorgtime" type="text" class="form-control" v-model="dictEmployee.inorgtime" placeholder="入职时间"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">转正时间</div>
			   	<div class="col-sm-10">
			      <input id="zztime" type="text" class="form-control" v-model="dictEmployee.zztime" placeholder="转正时间"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">离职时间</div>
			   	<div class="col-sm-10">
			      <input id="outorgtime" type="text" class="form-control" v-model="dictEmployee.outorgtime" placeholder="离职时间"/>
			    </div>
			</div>
									<!-- <div class="form-group">
			   	<div class="col-sm-2 control-label">是否公司手机（0：否，1：是）</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="dictEmployee.hasorgmobile" placeholder="是否公司手机（0：否，1：是）"/>
			    </div>
			</div> -->
			
			<div class="form-group">
				<div class="col-sm-2 control-label">是否公司手机</div> 
				<label class="radio-inline">
				  <input type="radio" name="hasorgmobile" value="true" v-model="dictEmployee.hasorgmobile"/> 是
				</label>
				<label class="radio-inline">
				  <input type="radio" name="hasorgmobile" value="false" v-model="dictEmployee.hasorgmobile"/> 否
				</label>
			</div>
			
									<div class="form-group">
			   	<div class="col-sm-2 control-label">手机号码</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="dictEmployee.mobileno" placeholder="手机号码"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">推荐人</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="dictEmployee.recommender" placeholder="推荐人"/>
			    </div>
			</div>
									
			      <input type="hidden" class="form-control" v-model="dictEmployee.orderno" placeholder="排序"/>
			   
									<div class="form-group">
			   	<div class="col-sm-2 control-label">备注</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="dictEmployee.memo" placeholder="备注"/>
			    </div>
			</div>
									<!-- <div class="form-group">
			   	<div class="col-sm-2 control-label">b备注字段</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="dictEmployee.excol" placeholder="b备注字段"/>
			    </div>
			</div> -->
									
			   <input type="hidden" class="form-control" v-model="dictEmployee.createtime" placeholder="创建时间" />
			    
			
			      <input type="hidden" class="form-control" v-model="dictEmployee.createby" placeholder="创建人"/>
			    
									
			      <input type="hidden" class="form-control" v-model="dictEmployee.updatetime" placeholder="修改时间"/>
			   
									
			      <input type="hidden" class="form-control" v-model="dictEmployee.updateby" placeholder="修改人"/>
			   
									<!-- <div class="form-group">
			   	<div class="col-sm-2 control-label">状态</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="dictEmployee.state" placeholder="状态"/>
			    </div>
			</div> -->
			
				<div class="form-group">
				<div class="col-sm-2 control-label">状态</div> 
				<label class="radio-inline">
				  <input type="radio" name="state" value="true" v-model="dictEmployee.state"/> 是
				</label>
				<label class="radio-inline">
				  <input type="radio" name="state" value="false" v-model="dictEmployee.state"/> 否
				</label>
			</div>
			
							<div class="form-group">
				<div class="col-sm-2 control-label"></div> 
				<input type="button" class="btn btn-primary" @click="saveOrUpdate" value="确定"/>
				&nbsp;&nbsp;<input type="button" class="btn btn-warning" @click="reload" value="返回"/>
			</div>
		</form>
	</div>
	<div id="managerName" style="display: none;">
		<table id="cfqgrid"></table>
        <div id="jqGridPagercf" style='position:relative;'></div>
	
	</div>
	<div id="zjJobName" style="display: none;">
		<table id="zjJobId"></table>
        <div id="jqGridPagercf" style='position:relative;'></div>
	
	</div>
	<!-- 导入菜单 -->

<!-- 选择菜单 -->
<div id="deptLayer" style="display: none;padding:10px;">
	<ul id="deptTree" class="ztree"></ul>
</div>
</div>

<script src="${rc.contextPath}/js/zjdc/dictemployee.js?_${date.systemTime}"></script>
<script src="${rc.contextPath}/js/laydate/laydate.js"></script>
<script>
laydate.render({
	  elem: '#inorgtime', //指定元素
	  type: 'month',
	  max:'currentdate'
	});
</script>
</body>
</html>